﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ly
{
    /// <summary>
    /// npc  类型
    /// </summary>
    enum NPCType
    {
        /// <summary>
        /// 任务类型
        /// </summary>
      task,
      /// <summary>
      /// 商贩类型
      /// </summary>
      shop,
      /// <summary>
      /// 铁匠类型
      /// </summary>
      tie
    }

     abstract class NPC
    {
        public  string Name { get; set; }
        public NPCType Type { get; set; }
        public string NPCInfo { get; set; }
        public NPC() { }
        public NPC(string name, NPCType type,string info)
        {
            Name = name;
            Type = type;
            NPCInfo = info;

        }
        public abstract void Speak();
        

    }
}
